package com.tywj.buscustomerapp.view.item;


import android.support.annotation.NonNull;
import android.util.Log;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;

import com.tywj.buscustomerapp.R;
import com.tywj.buscustomerapp.utils.myadapter.item.AdapterItem;

import java.util.ArrayList;
import java.util.List;

public class evaItme implements AdapterItem<String> {
    private CheckBox radioButton;
    private List<String> list = new ArrayList<>();
    public  isCheckListener listener;
    public interface isCheckListener{
        public void onCheckAddListener(int poi,boolean ischecked);
        public void onCheckRemoveListener(int poi);

    }

    public void setCheckListener(isCheckListener listener){
        this.listener = listener;
    }
    @Override
    public int getLayoutResId() {
        return R.layout.item_eva;
    }

    @Override
    public void bindViews(@NonNull View root) {
        radioButton = root.findViewById(R.id.radio);
        radioButton.setChecked(false);
    }

    @Override
    public void setViews() {

    }

    @Override
    public void handleData(String name, int position) {
        radioButton.setText(name);
    }
}
